package com.zt.myapplication
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.alibaba.android.arouter.launcher.ARouter
import com.zt.home.activity.SearchActivity
import com.zt.mine.activity.SettingActivity
import com.ztind.mvvm.common.utils.gotoActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }
    fun click(view:View){
        Intent(this,SearchActivity::class.java).apply {
            startActivity(this)
        }
    }
    fun setting(view: View){
//        gotoActivity<SettingActivity>(this)
        ARouter.getInstance().build("/mine/setting").navigation()
    }
}